<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>盒子模型</title>
    <style>
    div{
        width: 200px;
        height: 200px;
        background: pink;
    }
    .box1{
        background: palegreen;
        /* 设置内边距 */
        padding: 10px;
        padding: 10px 10px;
        padding: 10px 10px 10px;
        padding: 10px 10px 10px 10px;
        padding-top: 10px;
        padding-right: 10px;
        padding-bottom: 10px;
        padding-left: 10px;
    }
    .box2{
        background: paleturquoise;
        /* 设置内边距的作用界限 */
        box-sizing: border-box;
    }
    .box3{
        background: palevioletred;
        /* 设置外边距 */
        margin: 10px;
        margin: 10px 10px;
        margin: 10px 10px 10px;
        margin: 10px 10px 10px 10px;
        margin-top: 10px;
        margin-right: 10px;
        margin-bottom: 10px;
        margin-left: 10px;
    }
    .box4{
        /* 设置边框 */
        border: 50px solid papayawhip;
        border-top: 50px dotted rgb(54, 222, 241);
        border-right: 50px double rgb(200, 247, 70);
        border-bottom: 50px solid rgb(47, 106, 195);
        border-left: 50px dashed rgb(226, 73, 201);
        /* 设置圆角边框 */
        border-radius: 50%;
    }
    </style>
</head>
<body>
    <div></div>
    <div class="box1"></div>
    <div class="box1 box2"></div>
    <div class="box1 box2 box3"></div>
    <div class="box1 box2 box3 box4"></div>
</body>
</html>